package com.example.myweb.Dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class CreateDynamicRequestDTO {
    @NotBlank(message = "动态内容不能为空")
    @Size(max = 500, message = "动态内容不能超过500个字符")
    private String content;

    private List<String> imageUrls;

    // 原有的 List<String> topics 字段可以保留
    private List<String> topics;

    @Valid
    private PollCreateDTO poll;
}
